//
//  LMCommonCollectionViewCell.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import <UIKit/UIKit.h>

@class THBaseEntity;
@class THBaseCollectionViewCell;

NS_ASSUME_NONNULL_BEGIN

@interface THBaseCollectionViewCell : UICollectionViewCell
/**entity of collectionView ,may be nil*/
@property (nonatomic,retain,nullable) id entity;
/** index for Cell*/
@property (nonatomic,retain,nullable) NSIndexPath *indexPath;

/// 添加子控件
- (void)setupUI;
/// 配置子控件
- (void)configViews;
/// 布局子控件
- (void)setupFrames;

/** set entify which may be nil*/
/**快速配置视图*/
- (void)configureCellWithEntity:(nullable THBaseEntity*)entity;

+ (NSString*)cellIdentifier;

@end

NS_ASSUME_NONNULL_END
